package com.example.mybatisplusdemo.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("goods")
public class Good {
    @TableId(value = "id",type = IdType.AUTO)
    private String id;
    private String name;
    private String cateid;
    private String busid;
    private String img;
    private String detail;
    private String price;
    private String ishot;
    @TableField(exist = false)
    private String catename;
    @TableField(exist = false)
    private String busname;

    @Override
    public String toString() {
        return "Good{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", cateid='" + cateid + '\'' +
                ", busid='" + busid + '\'' +
                ", img='" + img + '\'' +
                ", detail='" + detail + '\'' +
                ", price='" + price + '\'' +
                ", ishot='" + ishot + '\'' +
                ", catename='" + catename + '\'' +
                ", busname='" + busname + '\'' +
                '}';
    }

    public String getCatename() {
        return catename;
    }

    public void setCatename(String catename) {
        this.catename = catename;
    }

    public String getBusname() {
        return busname;
    }

    public void setBusname(String busname) {
        this.busname = busname;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCateid() {
        return cateid;
    }

    public void setCateid(String cateid) {
        this.cateid = cateid;
    }

    public String getBusid() {
        return busid;
    }

    public void setBusid(String busid) {
        this.busid = busid;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getIshot() {
        return ishot;
    }

    public void setIshot(String ishot) {
        this.ishot = ishot;
    }
}
